{extend name="admin/public:layout" /}
{block name="title"}申请管理{/block}
{block name="head"}{/block}
{block name="body"}
<div class="wrapper wrapper-content">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> <a href="{:url('index')}"> 申请管理</a></li>
                <li class="active">编辑申请</li>
            </ol>
        </div>
        <div class="ibox-content">
            <form method="post" class="form-horizontal" id="form">
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">申请人</label>
                    <div class="col-sm-4">
                        <p class="form-control-static">{$info.member_name}</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">申请圈子</label>
                    <div class="col-sm-4">
                        <p class="form-control-static">{$info.circle_name}</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">申请内容</label>
                    <div class="col-sm-4">
                        <p class="form-control-static">{$info.cm_applycontent}</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">申请时间</label>
                    <div class="col-sm-4">
                        <p class="form-control-static">{$info.cm_applytime|date='Y-m-d H:i',###}</p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">状态</label>
                    <div class="col-sm-10">
                        <label class="radio-inline i-checks">
                            <input type="radio" name="cm_state" value="0" {eq name="info.cm_state" value="0"}checked{/eq}> 申请中
                        </label>
                        <label class="radio-inline i-checks">
                            <input type="radio" name="cm_state" value="1" {eq name="info.cm_state" value="1"}checked{/eq}> 通过
                        </label>
                        <label class="radio-inline i-checks">
                            <input type="radio" name="cm_state" value="2" {eq name="info.cm_state" value="2"}checked{/eq}> 未通过
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">角色</label>
                    <div class="col-sm-10">
                        <label class="radio-inline i-checks">
                            <input type="radio" name="is_identity" value="1" {eq name="info.is_identity" value="1"}checked{/eq}> 圈主
                        </label>
                        <label class="radio-inline i-checks">
                            <input type="radio" name="is_identity" value="2" {eq name="info.is_identity" value="2"}checked{/eq}> 成员
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">推荐</label>
                    <div class="col-sm-10">
                        <label class="radio-inline i-checks">
                            <input type="radio" name="is_recommend" value="0" {eq name="info.is_recommend" value="0"}checked{/eq}> 否
                        </label>
                        <label class="radio-inline i-checks">
                            <input type="radio" name="is_recommend" value="1" {eq name="info.is_recommend" value="1"}checked{/eq}> 是
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-10 col-sm-offset-2">
                        <button class="btn btn-primary" type="button" id="btnSub">保存内容</button>
                        <a href="{:url('index')}" class="btn btn-white">取消</a>
                        <span id="validError"></span>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
    $(function () {
        iCheck();
        ajaxSubForm('#btnSub');
    })
</script>
{/block}